package com.example.myproject.exception;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.servlet.NoHandlerFoundException;

@ControllerAdvice
public class GlobalExceptionHandler {
//    @ExceptionHandler(NoHandlerFoundException.class)
//    public ResponseEntity<String> handleNotFound(NoHandlerFoundException ex) {
//        return new ResponseEntity<>("Custom 404 error message", HttpStatus.NOT_FOUND);
//    }
}
